package com.bitoon.basketdudes.jpa;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class CategoriaTalentoModeloJugadorPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "modelo_id", nullable = false)
    private short modeloId;
    @Basic(optional = false)
    @Column(name = "cat_talento", nullable = false)
    private short catTalento;

    public CategoriaTalentoModeloJugadorPK() {
    }

    public CategoriaTalentoModeloJugadorPK(short modeloId, short catTalento) {
        this.modeloId = modeloId;
        this.catTalento = catTalento;
    }

    public short getModeloId() {
        return modeloId;
    }

    public void setModeloId(short modeloId) {
        this.modeloId = modeloId;
    }

    public short getCatTalento() {
        return catTalento;
    }

    public void setCatTalento(short catTalento) {
        this.catTalento = catTalento;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) modeloId;
        hash += (int) catTalento;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof CategoriaTalentoModeloJugadorPK)) {
            return false;
        }
        CategoriaTalentoModeloJugadorPK other = (CategoriaTalentoModeloJugadorPK) object;
        if (this.modeloId != other.modeloId) {
            return false;
        }
        if (this.catTalento != other.catTalento) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.bitoon.basketdudes.jpa.CategoriaTalentoModeloJugadorPK[modeloId=" + modeloId + ", catTalento=" + catTalento + "]";
    }

}
